package smw.spring;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component
public class SmwBean2 {
	private String name = "chintaejin";
	
	@Autowired
	private SmwBean smwBean;
	
	
	public String hello(){
		return name;
	}
	
	public String helloSuper(){
		return smwBean.hello()+smwBean.hello();
	}


	public SmwBean getSmwBean() {
		return smwBean;
	}


	public void setSmwBean(SmwBean smwBean) {
		this.smwBean = smwBean;
	}
	
	
}
